<?php

namespace App\Kuafu\Shop\Resources\B;

use App\Kuafu\Shop\Enum\ShopCodeEnum;
use App\Kuafu\Shop\Service\ShopService;
use App\Kuafu\WaiMai\Enum\WaiMaiDBEnum;
use App\Kuafu\WaiMai\Service\WaiMaiShopService;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class ShopArchivesResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param Request $request
     * @return array
     */
    public function toArray($request): array
    {
        return [
            'wechat'     => $this->wechat ?? '',
            'wechatUrl'  => $this->wechatUrl ?? '',
            'wechatPic'  => $this->wechatPic ?? '',
            'eWechat'    => $this->eWechat ?? '',
            'eWechatUrl' => $this->eWechatUrl ?? '',
            'eWechatPic' => $this->eWechatPic ?? '',
        ];
    }
}
